<template>
	<view>
		<view class="last-update-list flex-row" v-for="(item,index) in list" @click="goTopicDetail">
			<image :src="item.img" lazy-load mode="heightFix"></image>
			<view class="">
				<view class="">#{{item.title}}#</view>
				<view class="">{{item.desc}}</view>
				<view class="">动态：{{item.totalNum}} 今日：{{item.todayNum}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	/*
	 * newsTopicList 动态页话题列表
	 * @description 用于动态页中话题栏下面的话题列表
	 * @author MrThinco
	 * @property {Array} list 信息列表
	 */
	export default {
		props:{
			list: Array
		},
		data() {
			return {
				
			};
		},
		methods: {
			// 话题详情
			goTopicDetail() {
				this.$u.route('/pages/news/news-topic-detail');
			}
		}
	}
</script>

<style lang="scss" scoped>
.last-update-list {
		image {
			width: 150rpx;
			height: 150rpx;
			border-radius: 10rpx;
			margin-right: 20rpx;
		}
		view {
			color: #A4A4A4;
		}
		view > view:first-child {
			font-size: 32rpx;
			color: #333333;
		}
		padding: 20rpx 0;
		border-bottom: 1rpx solid #EEEEEE;
	}
</style>
